// require("./dist/element.css")
// var Element = require("./dist/element.js")

require('https://unpkg.com/element-ui/lib/theme-chalk/index.css')
var Element = require('https://unpkg.com/element-ui/lib/index.js')

// 单独请求 有点浪费 合并
// var mixin = require("./mixin.js")
// iview.mixin = mixin

var components = {}
for (var key in Element) {
  if (/[A-Z]/.test(key)) {
    components[key] = Element[key]
  }
}

// 部分混入, 不建议全局混入
Element.mixin = {
  components: components
}

module.exports = Element
